<% var version = 20180626; %>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>研究生升级平台</title>
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="/public/amazeUI/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="/public/amazeUI/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI" />
    <link rel="stylesheet" href="/public/amazeUI/css/amazeui.min.css" />
    <link rel="stylesheet" href="/public/amazeUI/css/amazeui.datatables.min.css" />
    <link rel="stylesheet" href="/public/js/zeroModal/zeroModal.css?v=<%=version%>" />
    <link rel="stylesheet" href="/public/amazeUI/css/app.css?v=<%=version%>">
    <link rel="stylesheet" href="/public/js/jquery-toast/jquery.toast.min.css?v=<%=version%>">
    <link rel="stylesheet" href="/public/js/justToolsTip/justToolsTip.css?v=<%=version%>">
    <link rel="stylesheet" href="/public/css/index.css?v=<%=version%>">
    <script src="/public/amazeUI/js/jquery.min.js"></script>
</head>

<body data-type="index">
    <script src="/public/amazeUI/js/theme.js"></script>
    <div class="am-g tpl-g">
        <!-- 头部 -->
        <header>
            <!-- logo -->
            <div id="backToHome" class="am-fl tpl-header-logo">
                <a href="javascript:;"><img src="/public/amazeUI/img/logo.png" alt=""></a>
            </div>
            <!-- 右侧内容 -->
            <div class="tpl-header-fluid">
                <div class="am-fl tpl-header-navbar">
                    <a href="javascript:void(0);" role="menu" role-url="/simpleUpgradePackage">
                        <i class="am-icon-home am-icon-shopping-bag" style="margin-right:12px;"></i>升级包管理
                    </a>
                </div>
                <div class="am-fl tpl-header-navbar">
                    <a href="javascript:void(0);" role="menu" role-url="/simpleDownUpgradePackage">
                        <i class="am-icon-home am-icon-cloud-download" style="margin-right:12px;"></i>升级包下载
                    </a>
                </div>
                <!-- 其它功能-->
                <div class="am-fr tpl-header-navbar">
                    <ul>
                        <!-- 欢迎语 -->
                        <li class="am-text-sm tpl-header-navbar-welcome">
                            <a href="javascript:;">欢迎你,<span><%=curUserName%></span></a>
                        </li>
                       
                        <!-- 退出 -->
                        <li class="am-text-sm">
                            <a href="javascript:window.location.href='/logout';"><span class="am-icon-sign-out"></span>退出</a>
                        </li>
                    </ul>
                </div>
            </div>
        </header>
        <!-- 风格切换 -->
        <div class="tpl-skiner">
            <div class="tpl-skiner-toggle am-icon-cog"></div>
            <div class="tpl-skiner-content">
                <div class="tpl-skiner-content-title">选择主题</div>
                <div class="tpl-skiner-content-bar">
                    <span class="skiner-color skiner-white" data-color="theme-white"></span>
                    <span class="skiner-color skiner-black" data-color="theme-black"></span>
                </div>
            </div>
        </div>
        
        <!-- 内容区域 -->
        <div class="row-content am-cf">
            <div class="row">
                <div class="widget am-cf">
                    <div id="mainDiv" class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                    </div>
                </div>
            </div>
        </div>
    </div>
    </div>
    <script src="/public/amazeUI/js/amazeui.min.js"></script>
    <script src="/public/amazeUI/js/amazeui.datatables.min.js"></script>
    <script src="/public/amazeUI/js/dataTables.responsive.min.js"></script>
    <script src="/public/amazeUI/js/app.js?v=<%=version%>"></script>
    <script src="/public/js/jquery-toast/jquery.toast.min.js"></script>
    <script src="/public/js/justToolsTip/justToolsTip.js"></script>
    <script src="/public/js/mustache.js"></script>
    <script src="/public/js/route.js"></script>
    <script src="/public/js/zeroModal/zeroModal.min.js?v=<%=version%>"></script>
    <script src="/public/js/app/include.js?v=<%=version%>"></script>
    <script src="/public/js/app/searchBar.js?v=<%=version%>"></script>
    <script src="/public/js/app/workGrid.js?v=<%=version%>"></script>
    <script src="/public/js/app/common.js?v=<%=version%>"></script>
    <script type="text/javascript">
    $(function() {
        route.init();

        var jmenus = $('[role="menu"]');
        jmenus.click(function() {
            var jobj = $(this);
            var url = jobj.attr('role-url');

            route.go(url);
            //jmenus.removeClass('active');
            //jobj.addClass('active');
        });

        // 密码修改
        $('#editPassword').click(function() {
            zeroModal.success('TODO...');
        });

        $('#backToHome').click(function(){
            route.go(route.getDefaultUrlStr());
        });

        window.UG_isTester = '<%=isTester%>';
    });
    </script>
</body>

</html>